package cn.st4rlight.util.report.dto;

import cn.st4rlight.util.report.enums.TimeGroup;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;

/**
 * @author st4rlight <st4rlight@163.com>
 * Created on 2025-09-14
 */
@Data
@Accessors(chain = true)
@ApiModel(description = "通用时间查询条件")
public class TimeCondition {

    @ApiModelProperty(value = "开始时间, 取0点")
    private Long beginTime;

    @ApiModelProperty(value = "结束时间, 取23:59:59")
    private Long endTime;

    @ApiModelProperty(value = "时间聚合条件, 没有按照时间聚合时间时可以不传")
    private String groupType = TimeGroup.ALL.name();
}
